//
//  HomeViewController.m
//  News
//
//  Created by lanou3g on 15/11/4.
//  Copyright © 2015年 songhaowen. All rights reserved.
//

#import "HomeViewController.h"
#import "SCNavTabBarController.h"
#import "TouTiaoTableVC.h"
#import "NSString+Extension.h"


@interface HomeViewController ()

@end

@implementation HomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
     
    [self setUpUI];//添加各种控制器
}

//添加各种控制器
-(void)setUpUI{
    
    //头条
    TouTiaoTableVC *TouTiao = [TouTiaoTableVC new];
    TouTiao.title = @"最热"; 
   // [TouTiao setUpWithCategory:@"T1348647853363" withNum:20];
    
    //娱乐
    TouTiaoTableVC *yule = [TouTiaoTableVC new];
    yule.title = @"娱乐";
  //  [yule setUpWithCategory:@"T1348648517839" withNum:20];
    
    
     //体育
    TouTiaoTableVC *tiyu = [TouTiaoTableVC new];
    tiyu.title = @"实时体育";
   // [tiyu  setUpWithCategory:@"T1348649079062" withNum:20];

    
    //科技
    TouTiaoTableVC *keji =  [TouTiaoTableVC new];
    keji.title = @"科技快报";
   // [keji  setUpWithCategory:@"T1348649580692" withNum:20];
    
    //财经
    TouTiaoTableVC *caijing =  [TouTiaoTableVC new];
    caijing.title = @"财经频道";
   // [caijing  setUpWithCategory:@"T1348648756099" withNum:20];

    //社会
    TouTiaoTableVC *shehui =  [TouTiaoTableVC new];
    shehui.title = @"社会";
  //  [shehui  setUpWithCategory:@"T1348648037603" withNum:20];
    
    
    //教育
    TouTiaoTableVC *jiaoyu =  [TouTiaoTableVC new];
    jiaoyu.title = @"教育";
  //  [jiaoyu  setUpWithCategory:@"T1348654225495" withNum:20];


    
    //时尚
    TouTiaoTableVC *shishang =  [TouTiaoTableVC new];
    shishang.title = @"时尚";
  //  [shishang  setUpWithCategory:@"T1348650593803" withNum:20];

    //家居
    TouTiaoTableVC *jiaju =  [TouTiaoTableVC new];
    jiaju.title = @"家居";
  //  [jiaju  setUpWithCategory:@"T1348654105308" withNum:20];

    
    
    //游戏
    TouTiaoTableVC *youxi =  [TouTiaoTableVC new];
    youxi.title = @"游戏";
  //  [youxi  setUpWithCategory:@"T1348654151579" withNum:20];

    SCNavTabBarController *mainVC = [SCNavTabBarController new];
    mainVC.subViewControllers = @[TouTiao,yule,youxi,tiyu,keji,caijing,shehui,jiaoyu,shishang,jiaju];//在这里添加控制器(界面)
    mainVC.navTabBarColor = [UIColor grayColor];
    mainVC.navTabBarLineColor = ColorRandom;
    [mainVC addParentController:self];
}


@end
